#include"GConsoleReader.h"

GConsoleReader::GConsoleReader(QObject* parent) : QThread(parent) {
	
}

void GConsoleReader::run() {
	cout<<"Console Reader" <<endl;
	
	
	while(1) {
		string input;
		cin>>input;
		QString in(QString::fromStdString(input));
		
		if(in == "q") emit signalQuit();
		
	}
	
	
}
